package com.dong.ioc.annotation;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

/**
 * description
 *
 * @author Administrator 2021/08/31 16:27
 */
public class Company {

    @Autowired
    @Genre("main")
    private Account account;

    public Account getAccount() {
        return account;
    }

    @Autowired
    public void setAccount(@Genre("main") Account account) {
        this.account = account;
    }

    @Override
    public String toString() {
        return "Company{" +
                "account=" + account +
                '}';
    }
}
